package com.lagou.educommentboot.service;


import com.lagou.eduapi.entity.CourseComment;

import java.util.List;

public interface CommentService {

    /*保存留言*/
    Integer saveComment(CourseComment comment);

    List<CourseComment> getCommentsByCourseId(Integer courseId, Integer offset, Integer pageSize);

    /*点赞*/
    Integer saveFavorite(Integer commentId, Integer userId);

    /*取消赞*/
    Integer cancelFavorite(Integer commentId, Integer userId);
}
